package com.github_dididipapa.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github_dididipapa.common.utils.PageUtils;
import com.github_dididipapa.mall.product.entity.CategoryEntity;
import com.github_dididipapa.mall.product.vo.CatelogTreeVo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author dididipapa
 * @email not_found@404.com
 * @date 2025-04-26 18:14:11
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> list);

    Long[] findCatelogPath(Long catelogId);

    void updateCascde(CategoryEntity category);

    List<Long> getCatelogPath(Long catelogId);

    List<CategoryEntity> getLevelOneClassOfProduct();

    Map<String, List<CatelogTreeVo>> getCatelogJson();
}

